//---------------------------------------------------------------------------
#include <vcl\vcl.h>
#pragma hdrstop

#include "readva1.h"
#include "diff.h"
//---------------------------------------------------------------------------
#pragma resource "*.dfm"
TReadVal *ReadVal;
extern float MaxValueX;
extern float MaxValueY;
extern float MaxValueZ;
//---------------------------------------------------------------------------
__fastcall TReadVal::TReadVal(TComponent* Owner)
	: TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TReadVal::FormCreate(TObject *Sender)
{
 char s[100];
 sprintf(s,"%f",MaxValueX);
 ReadValEdit1->Text=s;
 sprintf(s,"%f",MaxValueY);
 ReadValEdit2->Text=s;
 sprintf(s,"%f",MaxValueZ);
 ReadValEdit3->Text=s;
}
//---------------------------------------------------------------------------
void __fastcall TReadVal::Button1Click(TObject *Sender)
{
 MaxValueX=fabs(atof(ReadValEdit1->Text.c_str()));
 MaxValueY=fabs(atof(ReadValEdit2->Text.c_str()));
 MaxValueZ=fabs(atof(ReadValEdit3->Text.c_str()));
 Close();
}
//---------------------------------------------------------------------------